package com.p2p.terminal.controller;

import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.p2p.account.po.Agent;
import com.p2p.account.vo.AgentVo;
import com.p2p.common.enums.ResponseEnum;
import com.p2p.common.utils.BeanUtil;
import com.p2p.common.utils.PageUtil;
import com.p2p.common.utils.ResMessage;
import com.p2p.common.utils.StringUtils;
import com.p2p.common.utils.Underline2Camel;
import com.p2p.terminal.po.P2pDailyData;
import com.p2p.terminal.service.P2pDailyDataService;
import com.p2p.terminal.service.TerminalDataService;
import com.p2p.terminal.vo.DailyDataCondition;
import com.p2p.terminal.vo.P2pDailyResponse;
import com.p2p.terminal.vo.TerminalData;
import com.p2p.terminal.vo.TerminalDataCondition;

@RestController
@RequestMapping(value = "terminalData")
public class TerminalDataController {

	@Autowired
	private TerminalDataService terminalDataService;

	/**
	 * 获取每日数据
	 *
	 * @param request
	 * @return
	 */
	@RequestMapping(value = "selectTerminalData", method = RequestMethod.POST)
	public ResMessage<TerminalData> selectDailyData(TerminalDataCondition dataCondition) {
		EntityWrapper<TerminalData> dataWrapper = new EntityWrapper<TerminalData>();
	

    
		
		return terminalDataService.selectLists(dataCondition);
	}

}
